#include <stdio.h>

int cube(int n)
{
	return n * n * n;
}

int cube_sum(int num)
{
	int sum = 0;

	while (num) {
		sum += cube(num % 10);
		num /= 10;
	}

	return sum;
}

int fib(int n)
{
	if (n < 3) return 1;

	return fib(n - 1) + fib(n - 2);
}
